package cn.hinglo.gameclaw.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @createTime: 2017/12/29
 * @author: HingLo
 * @description: 导航菜单
 */
@Data
@Accessors(chain = true)
@Table(name = "menu")
public class Menu implements Serializable {
    @Id
    private String id;

    /**
     * //名称
     */
    @NotNull(message = "菜单名称不能为空")
    private String name;
    /**
     * //创建时间
     */
    private Date date;
    /**
     * //排序
     */
    private Integer sort;
    /**
     * 是否可以手动添加，默认为可以(True:手动添加，False:自动添加)
     */
    @Column(name = "add_type")
    private Boolean addType = true;
}
